package cn.yto.print.model.response;

import lombok.Data;

import java.io.Serializable;

@Data
public class CameraResponse<T> implements Serializable {

    public static final String SUCCESS_CODE = "0";
    public static final String FAILURE_CODE = "500";

    private String code;
    private String msg;
    private T data;

    public CameraResponse() {
    }

    public CameraResponse(String respcode) {
        this.code = respcode;
    }

    public CameraResponse(String respcode, String respMessage) {
        this.code = respcode;
        this.msg = respMessage;
    }

    public CameraResponse(String respCode, String respMessage, T data) {
        this.code = respCode;
        this.msg = respMessage;
        this.data = data;
    }

}
